from django import template

register = template.Library()

@register.filter
def startswith(value, arg):
    return value.startswith(arg)

@register.filter
def can_access(obj, user):
    return obj.can_access(user)


@register.filter
def can_edit(obj, user):
    return obj.can_edit(user)
